<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <link rel="stylesheet" href="css/index.css">
  <script src="js/template-native.js"></script>
  <script src="js/jquery-3.3.1.min.js"></script>
  <script id="tem" type="text/html">
    <% for (var i = 0 ; i < comments.length ; i++) { %>
      <div class="message-content" uid="<%= comments[i].id%>">
        <div class="message-left">
          <a href="#" class="message-photo"><img src="./img/photo.png">
          </a>
          <p class="message-name"><%= comments[i].name %></p>
        </div>
        <div class="message-right">
          <p class="floor">
            <span>第<%= comments[i].id %>楼</span>
            <span class="delete">删除</span>
          </p>
          <p class="content"><%= comments[i].content %></p>
        </div>
      </div>
    <% } %>
  </script>
</head>
<body>
  <div class="message-board">
    <p class="message-title">留言板</p>
    <div>
      <div class="send">
        <span class="send-title">主人寄语</span>
        <span class="send-btn">编辑您的寄语
        </span>
      </div>
      <p class="exhibition"></p>
      <div class="send-content hidden">
        <textarea class="edit-exhibtion" cols="60" rows="10"></textarea>
        <div class="btn">
          <input type="button" value="发表" class="submit">
        </div>
      </div>
    </div>
    <div class="message">
      <div class="leave-message">
        <p class="leave-title"></p>
        <div class="list">
        </div>
        <span class="edit-btn">我要留言</span>
        <div class="edit-content hidden">
          <p>发表您的留言</p>
          <label for="name">用户名：</label><input type="text" id="name" class="name">
          <textarea cols="60" rows="10"></textarea>
          <div class="btn">
            <input type="button" value="发表" class="user-sumbit">
            <input type="button" value="取消" class="user-cancel">
          </div>
        </div>
      </div>
    </div>
  </div>
  <script src="js/index.js"></script>
</body>
</html>